import zoo2.*;


public class Main {
    public static void main(String[] args) {
        //UserCollections testClass = new UserCollections();
        AnimalsOfAreaCollection testArea = new AnimalsOfAreaCollection();
        ZooInfo testDepartment = new ZooInfo("繁育部");
        testArea.setDepartmentNa(testDepartment );
        testArea.setAreaNo("草食动物区");


        UserAnimal ani1 = new UserAnimal("麋鹿");
        UserAnimal ani2 = new UserAnimal("羊驼");
        UserAnimal ani3 = new UserAnimal("梅花鹿");
        UserAnimal ani4 = new UserAnimal("骆驼");

        testArea.addUser(ani1);
        testArea.addUser(ani2);
        testArea.addUser(ani3);


        System.out.println(testArea.displayAllAnimals());
        System.out.println("-----------------------------");

        testArea.deleteUser("张三");

        testArea.updateUser(ani3,ani4);

        System.out.println(testArea.displayAllAnimals());


        ZooManagerCollection computerDepartment = new ZooManagerCollection();
        computerDepartment.setDepartmentBelongTo(new ZooInfo("动物产后护理"));
        computerDepartment.setDepartmentName("繁育部");

        computerDepartment.addUser(new UserManager("王二"));
        computerDepartment.addUser(new UserManager("李四"));

        System.out.println(computerDepartment.displayAllAnimals());




    }
}